package com.ybb.production.service;

import com.alibaba.fastjson2.JSONObject;
import com.ybb.production.domain.GarmentProductionUserPay;
import com.ybb.production.dto.*;
import com.ybb.production.responce.GarmentPayByCntResp;
import com.ybb.production.responce.GarmentPayDetailResp;
import com.ybb.production.responce.GarmentPayStyleCodeAndProcessResp;

import java.util.List;

/**
 * 用户工资发放Service接口
 *
 * @author dj
 * @date 2023-09-27
 */
public interface IGarmentProductionUserPayService {
    /**
     * 查询用户工资发放
     *
     * @param id 用户工资发放主键
     * @return 用户工资发放
     */
    public GarmentProductionUserPay selectGarmentProductionUserPayById(Long id);

    /**
     * 查询用户工资发放列表
     *
     * @param garmentProductionUserPay 用户工资发放
     * @return 用户工资发放集合
     */
    public List<GarmentProductionUserPay> selectGarmentProductionUserPayList(GarmentProductionUserPay garmentProductionUserPay);

    /**
     * 新增用户工资发放
     *
     * @param garmentProductionUserPay 用户工资发放
     * @return 结果
     */
    public int insertGarmentProductionUserPay(GarmentProductionUserPay garmentProductionUserPay);

    /**
     * 修改用户工资发放
     *
     * @param garmentProductionUserPay 用户工资发放
     * @return 结果
     */
    public int updateGarmentProductionUserPay(GarmentProductionUserPay garmentProductionUserPay);

    /**
     * 批量删除用户工资发放
     *
     * @param ids 需要删除的用户工资发放主键集合
     * @return 结果
     */
    public int deleteGarmentProductionUserPayByIds(Long[] ids);

    /**
     * 删除用户工资发放信息
     *
     * @param id 用户工资发放主键
     * @return 结果
     */
    public int deleteGarmentProductionUserPayById(Long id);

    List<GarmentPayByCntResp> settlementListByQuantity(GarmentProductionPayCntParam userPayParam);

    int addPayConfig(List<GarmentProductionCustomizeConfDTO> confDTOList);

    List<GarmentProductionCustomizeConfDTO> qryPayConfig();

    int paySalary(List<GarmentProductionUserPay> userPay);

    int paySalaryCancel(List<GarmentProductionUserPay> ids);

    List<GarmentProductionUserPay> paySalaryRecord(GarmentProductionPayRecordDTO userPayParam);

    String paySalaryTotal(GarmentProductionPayRecordDTO userPayParam);

    List<GarmentProductionUserPay> paySalaryList(GarmentProductionPayRecordDTO userPayParam);

    JSONObject paySalaryListSatistics(GarmentProductionPayRecordDTO userPayParam);

    JSONObject settlementStatisticsByQuantity(GarmentProductionPayCntParam userPayParam);

    List<GarmentPayDetailResp> settlementDetailViewList(GarmentProductionPayDetailParam detailParam);

    JSONObject settlementDetailViewStatistics(GarmentProductionPayDetailParam userPayParam);

    int batchSettlement(GarmentProductionSettleParam ids);

    int batchSettlementCancel(List<Long> ids);

    int editUpNum(GarmentProductionUpNumParam param);

    int delUpNum(GarmentProductionUpNumParam param);

    List<GarmentPayByCntResp> totalSalaryExport(GarmentProductionPayCntParam userPayParam);

    List<GarmentPayDetailResp> cntSalaryExport(GarmentProductionPayDetailParam detailParam);

    List<GarmentPayStyleCodeAndProcessResp> settlementListByStyleCodeOrProcess(GarmentStyleCodeAndProcessParam param);

    List<GarmentProductionUserPay> paySalaryRecordExport(GarmentProductionPayRecordDTO userPayParam);

    String unSettlementCnt(GarmentStyleCodeAndProcessParam param);

}
